package com.my.mapper;

import com.my.bean.ResultPage;
import com.my.bean.SituationAnalysis;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 客户情况分析 Mapper 接口
 * </p>
 *
 * @author 冯政尚
 * @since 2018-09-07
 */
public interface SituationAnalysisMapper extends BaseMapper<SituationAnalysis> {


    //实现分页查询
    List<SituationAnalysis> selectMyPage(@Param("param") Map map1, @Param("map") Map map, @Param("areaid") Long areaid,@Param("admin")boolean admin);
    int countMyPage(@Param("param") Map map1,@Param("map") Map map,@Param("areaid") Long areaid,@Param("admin")boolean admin);


    //实现分页查询每个销售每个月总单数
     List<SituationAnalysis> selectCount(@Param("param") Map map1, @Param("map") Map map,@Param("areaid") Long areaid,@Param("admin")boolean admin);
     int count(@Param("param") Map map1,@Param("map") Map map,@Param("areaid") Long areaid,@Param("admin")boolean admin);



    //根据名字查询总单数
    List<SituationAnalysis> selectByPerson(@Param("param") Map map,@Param("areaid") Long areaid,@Param("admin")boolean admin);
    int countPerson(@Param("param") Map map,@Param("areaid") Long areaid,@Param("admin")boolean admin);



}